package org.example.controller;

import org.springframework.core.annotation.Order;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package org.example.controller
 * @date 2024/4/2 11:21
 */
@WebFilter(urlPatterns = {"/admin/*", "/user/*"})
@Order(1)
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }
    @Override
    public void doFilter(ServletRequest servletRequest,
                         ServletResponse servletResponse,
                         FilterChain filterChain) throws IOException, ServletException {
    }
    @Override
    public void destroy() {
    }
}
